package com.ruoyi.edu.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程章节管理业务对象 edu_chapter
 *
 * @author ruoyi
 * @date 2022-08-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EduChapterBo extends BaseEntity {

    /**
     * 章节ID
     */
    @NotBlank(message = "章节ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 课程ID
     */
    @NotBlank(message = "课程ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String courseId;

    /**
     * 章节名称
     */
    @NotBlank(message = "章节名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 显示排序
     */
    @NotBlank(message = "显示排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sort;


}
